#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


  byte buf[256],
	     data;

  long posi,
	     ofs;

  int  c;
  word val;

	FILE *tf,
	     *cf;

int main( )
{

  tf = fopen( "c:/romhack/trans/8x8vwf.vwf","rb");
  cf = fopen( "c:/romhack/trans/8x8vwf.1bp","wb");

  if ( !tf || !cf ) return -1;
  //
  fseek( tf, 0, SEEK_END );
  posi = ftell( tf );
  fseek( tf, 0, SEEK_SET );
  //
  c = -1;
  //
  while( ++c < posi )
  {
    data = fgetc( tf );
    if ( data == 1 )
		  fputc( 1, cf );
     else
      fputc( 0, cf );
  }


  fcloseall( );
  return 0;
}

